﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Svg;
using System.Drawing;
using System.Runtime.Serialization;
using Commons;

namespace HumanFace
{
    [DataContract]
    public class Visage : Entities.Base.VisageBASE
    {
        public Visage(NodeCollection pointList, Dictionary<string, string> templates)
            : base(templates,pointList)
        {
            RenderVectorelGraphic();
        }
        public Visage()
        {
        }
        protected override void RenderVectorelGraphic()
        {
            base.RenderVectorelGraphic();


            if (this.SVG != null)
                this.SvgDoc = SketchHelper.ConvertTo(this.SVG);
        }
    }
}
